:root { 
	--default-color: LightGray;
	--default-background-color: #2f4f4f;
	--default-border-color: #b3b3b3;
	--minimum-font-size: 16px;
	--maximum-font-size: 22px;
	--minimum-viewport-width: 300px;
	--maximum-viewport-width: 1600px;
	}

h1, h2 {
	font-size: 250%;
	}

* { 
	border-color: var(--default-border-color);
	border-radius: 5px;
	box-sizing: border-box;
	color: var(--default-color);
	font-family: 'Noto Serif', serif;
	margin: 0; 
	outline: none;
	padding: 0; 
	text-decoration: none;
	}

html { 
	background-color: var(--default-background-color);
	min-height: 100%;
	}

body {
	display: flex;
	flex-direction: column;
	gap: 1vh;
	margin: auto;
	max-width: 960px;
	}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: auto;
	width: 90%;
	padding-top: 1vh;
	}

main {
	display: flex;
	flex-direction: column;
	gap: 1vh;
	margin: auto;
	width: 90%;
	}

img {
	animation: fadein 2s;
	filter: grayscale(100%);
	}

img:hover {
	filter: grayscale(0%);
	transition: 1.5s ease-in-out;
	}

h1 { 
	color: #B9E6F2; 
	}

nav {
	align-items: center;
	background-color: #2b4242;
	display: flex;
	justify-content: space-around;
	padding: 6px;
	}


header .logo {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 1vw;
	}

header .logo a {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 1vw;
	}

header img {
	filter: grayscale(0%);
	width: min(4vw,50px);
	}

audio {
	padding: 1vw;
	background-color: var(--default-background-color);
	}

/* BUTTON DEFAULT */
button {
	background-color: var(--default-background-color);
	border: none;
	text-align: center;
	font-size: var(--minimum-font-size);
	}

button:hover {
	cursor: pointer;
	}

.error {
	border: 2px solid #a94442; 
	margin-bottom: 20px;
	padding: 10px;
	}

dialog {
	animation:fadeout 1s 1;
   animation-delay: 5s;
	animation-fill-mode: forwards;
	background-color: darkgrey;
	border: 5px solid #0cb4d4;
	left: 50%;
	max-width: 50%;
	padding: 20px; 
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	}

@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* forms */
form input[type=file], input[type=email], input[type=password], input[type=text], 
form select, form textarea {
	background: transparent;
	border: 1px solid #3E606F;
	margin: 5px auto 10px;
	padding: 10px 10px;
	width: 100%;
}

.login {
	margin: auto;
	}

form select option {
	background-color: var(--default-background-color);
	}

input[type="checkbox"] { 
	float: left; 
	height: 20px; 
	}

label {
	float: left;
	margin-top: 20px; 
	}

/* tables */
table { 
	border-collapse: collapse;
	width: 100%;
	}

th, td { 
	border: 1px solid #ddd; 
	padding: 8px; 
	text-align: left; 
	}

th { 
	text-align: center;
	}

/* Table div (Displaying records from DB) */
.table-div { 
	margin-top: 3vh; 
	}

.table-div form button { 
	float: none; 
	margin: auto; 
	text-align: center; 
	}

.table-div .message { 
	margin-top: 20px; 
	width: 90%; 
	}

.table-div .fa { 
	color: white; 
	padding: 3px; 
	}

.table-div button { 
	background-color: transparent; 
	border: none; 
	margin: 0; 
	}

.banner {
	display: flex;
	background-image: url('../images/foggylandscape.jpg');
	background-size: 100%;
	min-height: 200px;
	width: 100%;
	align-items: center;
	}

.banner .welcome_msg {
	animation: fadein 3s 1;
	float: left;
	padding: 20px;
	width: 75%;
	}

/* SINGLE POST */
.singlepost {
	display: flex;
	justify-content: space-between;
	gap: 5%;
	padding: 2vh 1.0vw 1.0vh 1.0vw;
	}

.post-title {
	color: #B9E6F2;
	padding: 1vh 0 1vh 1vw;;
	}

.post-body-div {
	min-width: 70%;
	}

.post-body-div p {
	margin: 0 0 10px 0;
	text-align: justify;
	}

.post-body-div a {
	font-weight: bold;
	}

.sideimages {
	display: flex; 
	flex-direction: column;
	gap: 2vh;
	width: 25%;
	}

.sideimagecredit {
	padding: 5px; 
	font-size: small;
	}

.sideimagecredit a {
	font-weight: bold;
	}

/* CONTENT */
.content {
	display: grid;
	gap: 3.5% 2%;
	grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
	}

.content .post {
	background-color: #2b4242;
	flex-basis: 30%;
	height: auto;
	}

.post-image {
	width: 100%;
	height: 250px;
	object-fit: contain;
	padding: 3%;
	}

.post_info {
	padding: 0 0.5vw 0.5vh 0.5vw;
	}

.info {
	display: flex;
	flex-direction: row;
	font-style: italic;
	font-size: 100%;
	font-weight: 100;
	justify-content: space-between;
	}

.post_info h3 {
	width: minmax(200px,1fr); 
	white-space: nowrap;
	overflow: hidden; 
	text-overflow: ellipsis;
	font-size: 150%;
	}

.themes {
	position: sticky;
	top: 0;
	z-index: 5;
	border-radius: 0 0 5px 5px;
	background-color: #2b4242;
	display: flex;
	flex-direction: column;
	padding: 0.5vh 1.0vw 1.0vh 1.0vw;
	}

.post-sidebar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	column-gap: 2.5vw;
	}

.post-sidebar a {
	flex: 0 1 auto;
	color: #B9E6F2;
	font-size: 200%;
	}

.thumbnails {
	display: grid;
	gap: 2vw;
	grid-template-columns: repeat( auto-fill, minmax(200px,1fr));
	}

.thumbnails img {
	align-self: center;
	margin: 1vw;
	max-width: 100px;
	}

.donation {
	display: flex;
	flex-direction: column;
	column-gap: 2vh;
	padding: 10px;
	}

.donation a {
	font-weight: bold;
	}

.donation p {
	padding: 10px;
	font-size: small;
	}

.donation img {
	padding: 10px;
	}